<include file="public/min-header"/>
<div class="wrapper">
    <include file="public/breadcrumb"/>    <!-- Main content -->
    <section class="content">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i>支付列表</h3>
                </div>
                <div class="table-responsive">
                    <table class="table table-bordered table-hover">
                        <thead>
                        <tr>
                            <td class="text-left">支付名称</td>
                            <td class="text-left">支付简介</td>
                            <td class="text-center">是否使用</td>
                            <td class="text-left">操作</td>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="payment" id="p">
                            <tr>
                                <td class="text-left">{$p.name}</td>
                                <td class="text-left">{$p.desc}</td>
                                <td class="text-center">
                                    <img width="20" height="20" src="__PUBLIC__/images/<if condition="$p['status'] eq 1">yes.png<else />cancel.png</if>" onclick="changeTableVal('plugin','code','{$p.code}','status',this)"/>
                                </td>
                                <td class="text-left"><a href="{:U('Plugin/edit_pay',array('type'=>$p['type'],'code'=>$p['code']))}" class="btn btn-primary" role="button">配置</a></td>
                            </tr>
                        </volist>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </section>
</div>
</body>
</html>